import Vue from "vue"
let vm = new Vue()

//处理成功的弹窗
export const successAlert = msg =>{
    vm.$message({
        message:msg,
        type:"success"
    })
}

//处理失败的弹窗
export const errorAlert = msg=>{
    vm.$message({
        message:msg,
        type:"warning"
    })
}